package 
{
	import adobe.utils.CustomActions;
	import com.bardpub.controls.flvplayer.KControlBar;
	import com.bardpub.controls.flvplayer.KPlayer;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.events.ProgressEvent;
	import flash.geom.Rectangle;
	public class Test extends Sprite 
	{
		private var player:KPlayer;
		private var _loaded:Number = 0;
		private var _oldrunning:Boolean = false;
		public function Test()
		{
			
			player = new KPlayer(this, 20, 50);
			player.autoPlay = false;
		
			player.url = "http://localhost/1.flv";
			player.width = 400;
			player.height = 170;
			player.addControlbar(new KControlBar());
			
			
			//addEventListener(MouseEvent.CLICK, clickHandler);
			
		}
		
		private function clickHandler(e:MouseEvent):void 
		{
			player.width = 400 + Math.random() * 100;
			player.height = 200 + Math.random() * 200;
		}
		
		
		
		
	}
	
	
}